package com.lanou.beautifulwardrobe.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.lanou.beautifulwardrobe.R;


/**
 * Created by dllo on 15/10/26.
 */
public class SplashActivity extends Activity {
    private Handler handler;
    private Runnable r = new Runnable() {
        @Override
        public void run() {
            Intent intent = new Intent(SplashActivity.this, MainActivity.class);
            startActivity(intent);
            finish();
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        initView();
        initData();
    }

    private void initView() {
        handler = new Handler();
    }

    private void initData() {
        handler.postDelayed(r,1000);
    }
}
